#include "d3dApp.h"
#include "testD3D.h"
#include "meshViewer.h"


int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE prevInstance,
	PSTR cmdLine, int showCmd)
{
	// Enable run-time memory check for debug builds.
#if defined(DEBUG) | defined(_DEBUG)
	_CrtSetDbgFlag(_CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF);
#endif

	/*TestD3D theApp(hInstance);
	if (!theApp.Init())
		return 0;
	theApp.Run();*/

	CMeshViewer meshviewer(hInstance);
	if (!meshviewer.Init())
	{
		return 0;
	}
	meshviewer.Run();

	return 0;
}